package org.ddl.sample.service.impl;

import java.util.List;

import org.ddl.sample.mapper.StudentMapper;
import org.ddl.sample.model.Student;
import org.ddl.sample.service.StudentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 学生service
 * 
 * @author yinjianwei
 * @date 2017年9月10日 下午7:56:59
 *
 */
@Service
public class StudentServiceImpl implements StudentService {
	private final Logger logger = LoggerFactory.getLogger(StudentServiceImpl.class);

	@Autowired
	private StudentMapper studentMapper;

	@Override
	public List<Student> getAllNCStudents() {
		logger.info("测试");
		List<Student> students = studentMapper.getAllNCStudents();
		return students;
	}

	@Override
	public List<Student> getStudentsBySchoolId(Long schoolId) {
		List<Student> students = studentMapper.getStudentsBySchoolId(schoolId);
		return students;
	}

}
